# coding=utf-8
a = input()
b = list(a)
b.reverse()
c = ''
for i in b:
    c += i
print(c)
